<?php
namespace App\Models;

use Encore\Admin\Auth\Database\Administrator as BaseAdministrator;
use App\Models\User\Profile;
use App\Models\User\Sns;

/**
 * Class Administrator.
 *
 * @property Role[] $roles
 */
class Administrator extends BaseAdministrator
{

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function profile()
    {
        return $this->hasOne(Profile::class,'user_id');
    }

    public function sns()
    {
        return $this->hasOne(Sns::class,'user_id');
    }

}
